import Vue from 'vue'
import VueRouter from 'vue-router'


import routes from './routes'
Vue.use(VueRouter);

const router = new VueRouter({
	routes: routes,
	//mode: 'history',
	linkActiveClass:'active',
	scrollBehavior: function (to, from, savedPosition) {
		return savedPosition || {x: 0, y: 0}
	}
});

export default router;